package com.xsir.ditan.admin.controller;

import com.xsir.ditan.miniprogram.service.IOrderGoodsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @author user
 * @date 2021/2/9
 */
@Slf4j
@Controller
@RequestMapping("order")
public class OrderController extends BaseController{

    @Autowired
    private IOrderGoodsService orderGoodsService;
    
    @PostMapping("/list")
    @ResponseBody
    public Map<String,Object> list() {
        return orderGoodsService.getList();
    }
}
